﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 教师类
    /// </summary>
   public class EM_Teacher
    {
        /// <summary>
        /// 工作编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        [Required]
        public DateTime Birth { get; set; }

        /// <summary>
        /// 入职时间
        /// </summary>
        [Required]
        public DateTime JoinTime { get; set; }

        /// <summary>
        /// 工资
        /// </summary>
        [Required]
        public double Pay { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }
    }
}
